import Vue from 'vue'
import Router from 'vue-router'
import NotFoundComponent from '@/components/notfoundcomponent'
import HelloWorld from '@/components/HelloWorld';
Vue.use(Router)
let routeArray = [
  {
    path: '/',
    name: 'HelloWorld',
    component: HelloWorld
  },
  {path: '*', component: NotFoundComponent}
];

routeArray = routeArray.concat(demo);
// routeArray = routeArray.concat(test);
let basePath = process.env.basePath;
console.info("设置基准路径为：" + basePath);

export default new Router({
  mode: 'history',
  base: basePath,
  routes: routeArray
})
